﻿
using System;
namespace FluentTagsGenerator
{
    class Attribute : IComparable<Attribute>
    {
        public string Name { get; private set; }
        public string XmlType { get; set; }
        public string Default { get; set; }

        public string ClrType {
            get {
            
                switch(XmlType)
                {
                    case "Number":
                        return "int"; 
                    default:
                        return "string";
                }
            
            }
        }

        public Attribute(string name)
        {
            Name = name;
        }

        public override string ToString()
        {
            return Name;
        }


        public int CompareTo(Attribute other)
        {
            return Name.CompareTo(other.Name);
        }
        
    }
}
